<script>
export default {
  name: "Icon",
  props: {
    icon: {
      type: String,
      default: '',
      required: true,
    }
  },
}
</script>

<template>
  <i :class="/^el-/.test(icon)? icon :`${icon} iconfont`"/>
</template>